<div class="comicnav">{% spaceless %}
{% ifequal id first  %}
    <span>First</span>
    <span>Previous</span>
{% else %}
    <span><a href="/comics/{{ first }}/">First</a></span>
    <span><a href="/comics/{{ previous }}/">Previous</a></span>
{% endifequal %}

{% ifequal id last %}
    <span>Next</span>
    <span>Last</span>
{% else %}
    <span><a href="/comics/{{ next }}/">Next</a></span>
    <span><a href="/comics/{{ last }}/">Last</a></span>
{% endifequal %}
{% endspaceless %}</div>